﻿<%@ Page Language="C#" Trace="false" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="legacy_convertproject.aspx.cs" Inherits="LegacyConvertProjectPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">

	<form id="mainForm" runat="server">
		<div class="clearfix">
	
		<h1 class="page">Convert legacy format</h1>
		
		<p class="pageSection">
			The project you attempted to load is in a deprecated format and needs to be upgraded before you can use it with this version.
		</p>

		<h2>What has changed?</h2>
		<p class="pageSection">
			The text group concept have been removed. It was a bit of a misfit to begin with, and it was hard to conceive real life usage scenarios.
		</p>

		<h2>How do I upgrade my project?</h2>
		<p class="pageSection">
			If you use the TextEngine class in your application you must remove all calls to <code>SetGroupByName</code> and <code>SetGroupBySource</code> as they are tied to the group name.<br />
			<br />
			Upgrading your XML project file can be done in the two ways described below.<br />
			Please note that no matter which method you choose you may end up with ambiguitiously named textDefinitions if you had multiple textDefinitions with the same name in different groups.<br />
		</p>
		<h3>Manual editing</h3>
		<p class="pageSection">
		 Open the project file in you XML-editor of choice and remove the <code>textDefinitionGroups</code> node and all <code>textDefinitionGroup</code> nodes (not the textDefinitions nodes within). Check the new sample.xml file for an example.<br />
		</p>
		
		<h3>Automatic conversion</h3>
		You can also let the system do the upgrade for you by clicking the button below. Make sure you have a backup of your file before proceeding.<br />
		<br />
		<button onserverclick="ConvertProjectBtn_Clicked" id="ConvertProjectBtn" class="mainSubmit" runat="server">Convert project</button>

		</div>
	</form>

</asp:Content>
